﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="BouncingPlane.App"
             xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
             >
    <Application.Resources>

    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="ResourceDictionary.xaml"/>
    		</ResourceDictionary.MergedDictionaries>

    		<SolidColorBrush x:Key="ControlPanelColor" Color="Sienna"/>
        
    		<Style x:Key="ControlPanel" TargetType="Border">
    			<Setter Property="Grid.Row" Value="1"/>
    			<Setter Property="CornerRadius" Value="150,150,0,0"/>
    			<Setter Property="Margin" Value="30,0,30,0"/>
    			<Setter Property="Padding" Value="40,20,40,10"/>
    			<Setter Property="BorderBrush" Value="{StaticResource ControlPanelColor}"/>
    			<Setter Property="BorderThickness" Value="2,3,2,1"/>
    			<Setter Property="HorizontalAlignment" Value="Center"/>
    			<Setter Property="Background">
    				<Setter.Value>
    					<RadialGradientBrush GradientOrigin="0.38,0.12" Center="0.6,1" RadiusX="1" RadiusY="1.1">
    						<RadialGradientBrush.GradientStops>
    							<GradientStopCollection>
    								<GradientStop Color="Sienna" Offset="0.5" />
    								<GradientStop Color="orange" Offset="0.1" />
    							</GradientStopCollection>
    						</RadialGradientBrush.GradientStops>
    					</RadialGradientBrush>
    				</Setter.Value>
    			</Setter>
    		</Style>
        
    		<Style x:Key="ControlPanelGroup" TargetType="Border">
    			<Setter Property="BorderThickness" Value="1,1,1,0"/>
    			<Setter Property="BorderBrush" Value="{StaticResource ControlPanelColor}"/>
    			<Setter Property="CornerRadius" Value="80,80,15,15"/>
    			<Setter Property="HorizontalAlignment" Value="Center"/>
    			<Setter Property="Padding" Value="25,5,25,5"/>
    		</Style>
        
    		<Style x:Key="RadioButtonPlain" TargetType="RadioButton">
    			<Setter Property="Margin" Value="10,2,20,0"/>
    			<Setter Property="FontSize" Value="14"/>
    		</Style>

    		<!--
        Create the open space & horizon.
        -->
    		<LinearGradientBrush x:Key="AppBackground"  StartPoint="0,0" EndPoint="0,1">
    			<LinearGradientBrush.GradientStops>
    				<GradientStopCollection>
    					<GradientStop Color="black" Offset="0.1"/>
    					<GradientStop Color="Silver" Offset="0.55"/>
    					<GradientStop Color="#222" Offset="0.60"/>
    				</GradientStopCollection>
    			</LinearGradientBrush.GradientStops>
    		</LinearGradientBrush>

        
    		<!--
        Create "floor"
        -->
    		<Style x:Key="Floor" TargetType="Border">
    			<Setter Property="BorderBrush" Value="SlateGray" />
    			<Setter Property="BorderThickness" Value="1"/>
    			<Setter Property="Grid.RowSpan" Value="3"/>
    			<Setter Property="RenderTransform">
    				<Setter.Value>
    					<ScaleTransform ScaleY="1.1" CenterY="1600"/>
    				</Setter.Value>
    			</Setter>
    			<Setter Property="Background" >
    				<Setter.Value>
    					<ImageBrush ImageSource="images/grid.png"/>
    				</Setter.Value>
    			</Setter>
    			<Setter Property="Projection">
    				<Setter.Value>
    					<PlaneProjection RotationX="-88" CenterOfRotationY="1"/>
    				</Setter.Value>
    			</Setter>
    		</Style>
        
    		<Style x:Key="Frame" TargetType="Border">
    			<Setter Property="IsHitTestVisible" Value="True"/>
    			<Setter Property="Background" Value="#0FFF"/>
    			<Setter Property="Padding" Value="4"/>
    			<Setter Property="BorderBrush" Value="Silver"/>
    			<Setter Property="BorderThickness" Value="8"/>
    			<Setter Property="Width" Value="640"/>
    			<Setter Property="Height" Value="352"/>
    			<Setter Property="RenderTransform">
    				<Setter.Value>
    					<ScaleTransform ScaleX="0.85" CenterX="380" ScaleY="0.9" CenterY="380.0"/>
    				</Setter.Value>
    			</Setter>
    			<Setter Property="Projection">
    				<Setter.Value>
    					<PlaneProjection RotationX="5" RotationY="5"/>
    				</Setter.Value>
    			</Setter>
    		</Style>

    	</ResourceDictionary>

     </Application.Resources>
</Application>
